package com.chenye.klock;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Auther:chenye
 * @Data:2018/4/13
 * @Description:
 */
@Component
@RequestMapping("controller")
public class TestController {
    @Autowired
    private TestService testService;

    @RequestMapping("test")
    @ResponseBody
    public void test(String name,Integer age){
        testService.test(name,age);
    }
}
